package com.xb;

import com.xb.Entity.Customers;

import java.sql.Connection;
import java.sql.Date;
import java.util.List;

public interface CustomersDao {
    //增加
    void insert(Connection connection, Customers customers);
    //删除
    void deleteById(Connection connection,int id);
    //修改
    void updateById(Connection connection,int id, Customers customers);
    //查询
    Customers getCustomersById(Connection connection,int id);
    //查询所有的
    List<Customers> getCustomers(Connection connection);
    //查询最大的生日日期
    Date getMaxBirth(Connection connection);
    //查询总人数
    Long getCount(Connection connection);
}
